package com.longcai.cm.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * VIEW
 * </p>
 *
 * @author LBX
 * @since 2024-08-07
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("v_good_info_list")
@ApiModel(value = "VGoodInfoList对象", description = "VIEW")
public class VGoodInfoList implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    @ApiModelProperty("门店id")
    @TableField("shop_id")
    private String shopId;

    @ApiModelProperty("商品名称")
    @TableField("good_name")
    private String goodName;

    @ApiModelProperty("服务时间")
    @TableField("service_time")
    private String serviceTime;

    @ApiModelProperty("商品封面")
    @TableField("cover_img")
    private String coverImg;

    @ApiModelProperty("商品图片")
    @TableField("good_img")
    private String goodImg;

    @ApiModelProperty("已售数量")
    @TableField("sale_count")
    private Integer saleCount;

    @ApiModelProperty("1普通 2秒杀")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("1上架 0下架")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("商品价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty("商品售价")
    @TableField("sale_price")
    private BigDecimal salePrice;

    @ApiModelProperty("会员价格")
    @TableField("vip_price")
    private BigDecimal vipPrice;

    @ApiModelProperty("商品详情")
    @TableField("good_detail")
    private String goodDetail;

    @ApiModelProperty("有效期(天)")
    @TableField("effective_duration")
    private Integer effectiveDuration;

    @ApiModelProperty("佣金比例")
    @TableField("commission_rate")
    private BigDecimal commissionRate;

    @ApiModelProperty("备注信息")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("上架截止时间")
    @TableField("expire_time")
    private String expireTime;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private String createTime;


    @ApiModelProperty("是否置顶 1置顶")
    @TableField("is_top")
    private Integer isTop;

    @ApiModelProperty("商品评价")
    @TableField("comment")
    private Integer comment;

    @ApiModelProperty("距离")
    @TableField(exist = false)
    private Integer distance;

    @ApiModelProperty("门店名称")
    @TableField("shop_name")
    private String shopName;

    @ApiModelProperty("门店logo")
    @TableField("shop_logo")
    private String shopLogo;

    @ApiModelProperty("省")
    @TableField("province")
    private String province;

    @ApiModelProperty("市")
    @TableField("city")
    private String city;

    @ApiModelProperty("县")
    @TableField("area")
    private String area;

    @ApiModelProperty("门店评分")
    @TableField("score")
    private Integer score;

    @ApiModelProperty("经度")
    @TableField("lng")
    private String lng;

    @ApiModelProperty("纬度")
    @TableField("lat")
    private String lat;

    @ApiModelProperty("门店详细地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("门店服务类型")
    @TableField("service_info")
    private String serviceInfo;

    @ApiModelProperty("评价总数")
    @TableField(exist = false)
    private Long commentCount;

    @ApiModelProperty("评价列表（无分页）")
    @TableField(exist = false)
    private List<JaOrderComment> commentList;

    @ApiModelProperty("秒杀倒计时-秒")
    @TableField(exist = false)
    private Long leftTime;

    @ApiModelProperty("积分兑换比率 1元对应的积分数量")
    @TableField(exist = false)
    private BigDecimal integralRatio;

    @ApiModelProperty("积分最高抵扣比例")
    @TableField(exist = false)
    private BigDecimal integralRatioMax;

}
